#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_QT.h"
#include <qlineedit.h>
#include <qpushbutton.h>

class QT : public QWidget
{
    Q_OBJECT

public:
    QT(QWidget *parent = nullptr);
    ~QT();

private:
    Ui::QTClass ui;


private slots:
    void numberClicked();
    void operatorClicked();
    void calculateResult();

private:
    void setupUI();
    void connectSignals();

    QLineEdit* display;
    QList<QPushButton*> numberButtonList;
    QList<QPushButton*> operatorButtonList;
    double firstNumber = 0;
    QString currentOperator;

};

